<?php

class Application_Model_Session extends Frogg_Session{
	
	public function init(){}
	
	public function isLogged(){
		return isset($_SESSION['social_user']);
	}
	
	public function logIn($id){
		$_SESSION['social_user'] = $id;
	}
	
	public function logOut(){
		unset($_SESSION['social_user']);
	}
	
	public function getUser(){
		return ($this->isLogged())?$_SESSION['social_user']:-1;
	}
	
	public function getAccessLevel(){
		return ($this->isLogged())?10:0;
	}
	
}